package com.googlecode.todo_robot.persistence;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * @author Fuad Ibrahimov
 * @since 19.12.2009
 */
public final class EMF {
  private static final EntityManagerFactory emfInstance =
          Persistence.createEntityManagerFactory("transactions-optional");

  private EMF() {
  }

  public static EntityManagerFactory get() {
    return emfInstance;
  }
}